package com.team6.stickynote.adapter;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;

import com.team6.stickynote.beans.StickyNoteBean;

public class StickyNoteDiffCallback extends DiffUtil.ItemCallback<StickyNoteBean> {
    @Override
    public boolean areItemsTheSame(@NonNull StickyNoteBean oldItem, @NonNull StickyNoteBean newItem) {
        return oldItem.getId() == newItem.getId();
    }

    @Override
    public boolean areContentsTheSame(@NonNull StickyNoteBean oldItem, @NonNull StickyNoteBean newItem) {
        return false;
    }
}
